$(function () {
    console.log(titleUrl);
        $.ajax({
        url: severUrl+'index.php?m=Web&a=search&searchName='+titleUrl.searchName,
        type: 'GET',
        dataType: 'JSONP'
    })
    .done(function(data) {
        console.log("success");
        console.log(data);
        articlelistFun(data.article_list);
        
    })
    .fail(function() {
        console.log("error");
    })
    .always(function() {
        console.log("complete");
    });

})


// article
 function articlelistFun(data){
    var Con = $('#articleLilist');
    var html = '';

    for (var i = 0; i < data.length; i++) {
        var cn = '<li>'+
                '<a class="clearfloat" href="article.html?article_id='+data[i].article_id+'">'+
                    '<div class="imgC"><img src="'+data[i].image_url+'" alt=""></div>'+
                    '<div class="word">'+
                        '<h3>'+data[i].title+'</h3>'+
                        '<p>'+data[i].seo_description+'</p>'+
                    '</div>'+
                '</a>'+
            '</li>';
        html+=cn;
        
    }
    Con.html(html);
 }
// article end